@extends('layouts.admin.application')

@section('css')
    <link rel="stylesheet" href="/vendor/daterangepicker/daterangepicker.css">
@endsection

@section('content')

    <div class="admin-content">

        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">新增私教项目</strong> /
                <small>Create</small>
            </div>
        </div>
        <hr>
        @include('admin._flash')

        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-12">

                <form class="am-form" action="/admin/bespeakCate" method="post">
                    {{ csrf_field() }}


                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            所属门店
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <select  data-am-selected="{btnWidth: '100%',  btnStyle: 'secondary', btnSize: 'sm', maxHeight: 360, searchBox: 1}"
                                     name="store_id">
                                <option value="">请选择</option>
                                @foreach($stores as $s)
                                    <option value="{{$s->id}}" >{{$s->name}}</option>

                                @endforeach
                            </select>
                        </div>
                    </div>



                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            授课教练
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <select  data-am-selected="{btnWidth: '100%',  btnStyle: 'secondary', btnSize: 'sm', maxHeight: 360, searchBox: 1}"
                                     name="fixfxs_id">
                                <option value="">请选择</option>
                                @foreach($fixfxses as $f)
                                    <optgroup label="{{$f->name}}">
                                        @foreach($f->fixfxses as $fixfxs)
                                            <option value="{{$fixfxs->id}}">&nbsp;&nbsp;&nbsp;&nbsp;|--{{$fixfxs->name}}</option>
                                        @endforeach
                                    </optgroup>
                                @endforeach
                            </select>
                        </div>
                    </div>



                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            私教名称
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="name">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">*请填写唯一分类名称</div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            课程时长
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="course_time">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">*如60分则填写60</div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            课程规格
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            @foreach($tags as $t) <th>
                                    <label class="am-btn am-btn-default am-btn-s am-round" >
                                        <input type="checkbox" name="bespeak_id[]" value="{{$t->id}}" > {{$t->name}}
                                    </label>
                            </th> <br><br>  @endforeach
                        </div>
                    </div>
                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                           价格
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="price" class="am-input-sm" value="">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">*如380元则填写380</div>
                    </div>
                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            排序
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="sort" class="am-input-sm" value="">
                        </div>
                    </div>


                    {{--<div class="am-g am-margin-top sort">--}}
                        {{--<div class="am-u-sm-4 am-u-md-2 am-text-right">--}}
                            {{--结束时间--}}
                        {{--</div>--}}
                        {{--<div class="am-u-sm-8 am-u-md-4 am-u-end col-end">--}}
                            {{--<input type="text" name="sort_order" class="am-input-sm" value="" placeholder="点击选择结束时间" >--}}
                        {{--</div>--}}
                    {{--</div>--}}










                    <div class="am-margin">
                        <button type="submit" class="am-btn am-btn-primary am-radius">提交保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>


@endsection
@section('js')
    <script src="/vendor/daterangepicker/moment.js"></script>
    <script src="/vendor/moment/locale/zh-cn.js"></script>
    <script src="/vendor/daterangepicker/daterangepicker.js"></script>

  <script>


  </script>
@endsection